<template>
  <div id="app">
    <transition>
      <keep-alive>
        <router-view />
      </keep-alive>
    </transition>
  </div>
</template>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
}
//转场动画
.v-enter {
  transform: translateX(100%);
}
.v-enter-active {
  transition: all 0.6s;
}
</style>
